<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<%@include file="/res/include/base-head.jsp"%>
  	<%@include file="/res/include/jquery-easyui.jsp"%>
  	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/mall/shop.js"></script>
  	<style>
*{margin:0; padding:0;}
.box{ position:absolute; padding:10px 20px 20px 20px; background:#fff; z-index:999999;}
.box dl{display:block; width:100%;margin-bottom:50px;}
.box dt{font-size:14px;color:red;line-height:30px; font-weight:bold;}
.box dd{ width:49%;float:left; line-height:30px; }

table.gridtable {
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}
table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}
table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>
  </head>
  <body>
<div class="shop_detail">
	<div class="info">
    	<h2>订单号：${order.orderNo}</h2>
        <dl>
        	<dt>下单时间：</dt>
            <dd>${order.strNewAt}</dd>
        </dl>
        <dl>
        	<dt>订单标题：</dt>
            <dd>${order.title}</dd>
        </dl>
        <dl>
        	<dt>订单总额：</dt>
            <dd>${order.total}</dd>
        </dl>
        <dl>
        	<dt>圈币支付：</dt>
            <dd>${order.quanPay}</dd>
        </dl>
        <dl>
        	<dt>支付宝支付：</dt>
            <dd>${order.aliPay}</dd>
        </dl>
        <dl>
        	<dt>微信支付：</dt>
            <dd>${order.weixinPay}</dd>
        </dl>
        
        <dl>
        	<dt>买家留言：</dt>
            <dd>${order.remark}</dd>
        </dl>
        <div class="img_text"><p><img src="${order.fullImg}" alt="" /></p>
        </div>
   </div>
   <div class="info2">
   		<dl>
        	<dt>订单状态：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.orderStatus==1}">未完成</c:when>
					<c:when test="${order.orderStatus==2}">已完成</c:when>
					<c:when test="${order.orderStatus==3}">已取消</c:when>
					<c:otherwise>已删除</c:otherwise>
				</c:choose>
            </dd>
        </dl>
        <c:choose>
			<c:when test="${order.orderStatus==2}">
				<dl>
		        	<dt>完成时间：</dt>
		            <dd><c:out value='${order.strOrderStatusAt}' /></dd>
		        </dl>
			</c:when>
			<c:when test="${order.orderStatus==3}">
				<dl>
		        	<dt>取消时间：</dt>
		            <dd><c:out value='${order.strOrderStatusAt}' /></dd>
		        </dl>
			</c:when>
		</c:choose>
        <dl>
        	<dt>支付状态：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.payStatus==1}">未付款</c:when>
					<c:when test="${order.payStatus==2}">已付款</c:when>
				</c:choose>
            </dd>
        </dl>
        <dl>
        	<dt>支付时间：</dt>
            <dd><c:out value='${order.strPayStatusAt}' /></dd>
        </dl>
        <dl>
        	<dt>发货状态：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.deliveryStatus==1}">未发货</c:when>
					<c:when test="${order.deliveryStatus==2}">已发货</c:when>
					<c:when test="${order.deliveryStatus==3}">已签收</c:when>
				</c:choose>
            </dd>
        </dl>
        <dl>
        	<dt>发货时间：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.deliveryStatus!=1}"><c:out value='${order.strDeliveryStatusAt}' /></c:when>
					<c:otherwise>-</c:otherwise>
				</c:choose>
            </dd>
        </dl>  
        <dl>
        	<dt>签收类型：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.deliveryStatusSignType==1}">买家签收</c:when>
					<c:when test="${order.deliveryStatusSignType==2}">自动签收</c:when>
					<c:when test="${order.deliveryStatusSignType==3}">配送人签收</c:when>
					<c:otherwise>-</c:otherwise>
				</c:choose>
            </dd>
        </dl>  
		<dl>
        	<dt>退款状态：</dt>
            <dd> 
            	<c:choose>
					<c:when test="${order.returnPayStatus==1}">不需要退款</c:when>
					<c:when test="${order.returnPayStatus==2}">申请退款</c:when>
					<c:when test="${order.returnPayStatus==3}">退款完成 </c:when>
					<c:when test="${order.returnPayStatus==4}">拒绝退款 </c:when>
				</c:choose>
            </dd>
        </dl>
        <dl>
        	<dt>申请退款时间：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.returnPayStatus==2}"><c:out value='${order.strReturnPayStatusAt}' /></c:when>
					<c:otherwise>-</c:otherwise>
				</c:choose>
            </dd>
        </dl> 
        <c:if test="${order.orderType == 1}">
	        <dl>
	        	<dt>服务状态：</dt>
	            <dd> 
	            	<c:choose>
						<c:when test="${homemakingOrder.status==1}">等待服务</c:when>
						<c:when test="${homemakingOrder.status==2}">已服务</c:when>
						<c:when test="${homemakingOrder.status==3}">取消服务</c:when>
					</c:choose>
	            </dd>
	        </dl>
	        <dl>
	        	<dt>服务完成时间：</dt>
	            <dd><c:out value='${homemakingOrder.strDoneAt}' /></dd>
	        </dl> 
	        <dl>
	        	<dt>预约上门时间：</dt>
	            <dd><c:out value='${homemakingOrder.serviceTimeStr}' /></dd>
	        </dl> 
        </c:if>
    </div>
    <div class="info2">
    	<dl>
        	<dt>买家：</dt>
            <dd><c:out value='${buyerName}' /></dd>
        </dl>
        <dl>
        	<dt>
        		<c:if test="${order.orderType == 6}">店铺：</c:if>
        		<c:if test="${order.orderType != 6}">卖家：</c:if>
        	</dt>
            <dd><c:out value='${sellerName}' /></dd>
        </dl>
        <c:if test="${order.orderType == 6}">
	        <dl>
	        	<dt>店铺地址：</dt>
	            <dd>${shop.communityName}<c:out value='${shop.address}' /> 电话：<c:out value='${shop.phone}' /></dd>
	        </dl>
        </c:if>
        <dl>
        	<dt>业务类型：</dt>
            <dd>
            	<c:choose>
					<c:when test="${order.orderType==1}">服务订单</c:when>
					<c:when test="${order.orderType==2}">商城订单</c:when>
					<c:when test="${order.orderType==3}">闲置品</c:when>
					<c:when test="${order.orderType==4}">活动</c:when>
					<c:when test="${order.orderType==5}">代收代送</c:when>
					<c:when test="${order.orderType==6}">圈商订单</c:when>
					<c:otherwise></c:otherwise>
				</c:choose>
            </dd>
        </dl>
        <dl>
        	<dt>配送类型：</dt>
            <dd>${deliveryType}</dd>
        </dl>
    </div>  
    <div class="info2">
        <c:choose>
			<c:when test="${delivery.type==4}">
				<dl>
		        	<dt>自提地址：</dt>
		            <dd>联系人：<c:out value='${delivery.consignee}' /></dd>
					<dd>联系电话：<c:out value='${delivery.phone}' /></dd>
					<dd>自提地址：<c:out value='${delivery.address}' /></dd>
		        </dl>
			</c:when>
			<c:otherwise>
				<dl>
		        	<dt>收货地址：</dt>
		            <dd>收货人：<c:out value='${delivery.consignee}' /></dd>
					<dd>联系电话：<c:out value='${delivery.phone}' /></dd>
					<dd>收货地址：<c:out value='${delivery.address}' /></dd>
		        </dl>
			</c:otherwise>
		</c:choose>
		<c:if test="${sendDeliveryName != null && sendDeliveryName != ''}">
			<dl>
	        	<dt>配送信息：</dt>
	            <dd>配送人：<c:out value='${sendDeliveryName}' /></dd>
				<dd>联系电话：<c:out value='${sendDeliveryPhone}' /></dd>
	        </dl>
		</c:if>
    </div>  
    <div class="info2">
    	<dl>
			<dt>订单详情：</dt>
			<dd>
				<table class="gridtable" style="width: 50%;">
	                <thead>
	                <tr>
	                    <th>产品名称</th>
	                    <th>价格</th>
	                    <th>数量</th>
	                </tr>
	                </thead>
	                <tbody>
	                <c:forEach var="itemVo" items="${itemList}">
	                    <tr>
	                        <td>${itemVo.name } ${itemVo.productSpecName }</td>
	                        <td>${itemVo.price}</td>
	                        <td>${itemVo.quntity}</td>
	                    </tr>
	                </c:forEach>
	                </tbody>
	            </table>
			</dd>
		</dl>
    </div>  
</div>	
  </body>
</html>
